package org.kzwl.comm.pojo.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class UseRegisterBO {


    /**
     * 用户名
     */
//    @Pattern(regexp = " /[\\u4E00-\\u9FA5]/g ",message = "用户名不能包含汉字")
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String cuUsername;

//    @Pattern(regexp = "/^1(3|4|5|6|7|8|9)d{9}$/",message = "手机号格式不正确")
    @NotEmpty(message = "手机号不能为空")
    @ApiModelProperty("手机号")
    private String cuUserPhone;

//    @Min(value = 6,message = "密码不能小于6位")
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String cuUserPassword;

    @ApiModelProperty("验证码")
    private String cuVerificationCode;
}
